package org.tourism.service;

import org.tourism.entity.HotelReview;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wuling
 * @since 2024-07-05
 */
public interface HotelReviewService extends IService<HotelReview> {
    //返回值为int类型的函数，返回1代表成功，0代表失败
    int insertHotelReview(HotelReview hotelReview);

    int updateHotelReview(HotelReview hotelReview);

    int deleteHotelReview(HotelReview hotelReview);

    HotelReview selectHotelReviewById(Long id);

    List<HotelReview> selectHotelReviewByHotelId(Long hotelId);
}
